package com.AIDS.AIDSweeper.server.model.DAO;

import java.util.List;

import javax.jdo.PersistenceManager;
import javax.jdo.Query;

import com.AIDS.AIDSweeper.server.model.Game;
import com.google.appengine.api.datastore.Key;

public class GameDAO extends GoogleJDODAO<Game, Key> {
	
	@SuppressWarnings("unchecked")
	public List<Game> findByStatus(String status, PersistenceManager pm) {
		Query q = pm.newQuery(Game.class);
		q.setFilter("status == statusParam");
		q.declareParameters("String statusParam");
		return (List<Game>)q.execute(status);
	}
}
